package test8;// write your code here// 本题为考试单行多行输入输出规范示例，无需提交，不计分。
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextLine()) {// 注意，如果输入是多个测试用例，请通过while循环处理多个测试用例
            String s1 = in.nextLine();
            String s2 = in.nextLine();
            int i=0,j=0,k=0;
            boolean flag = true;
            int el = -1;
            for( i=0;i<s1.length()-s2.length()+1;i++) {
                k = i;
                if(s1.charAt(k) == '"' ) {
                    el = -el;
                }
                for( j=0;j<s2.length();j++) {

                    if( s1.charAt(k) == s2.charAt(j) ) {
                        k++;
                        if(k<s1.length() && s1.charAt(k) == '"' ) {
                            el = -el;
                        }
                    } else {
                        if(el == 1) {
                            while(k<s1.length() && s1.charAt(k) != '"' ) {
                                k++;
                            }
                            i = k;
                            el = -el;
                        }
                        break;
                    }
                }
                if( el == -1 && j >= s2.length() ) {
                    flag = false;
                    break;
                }
            }
            if( flag) {
                System.out.println("Important!");
            } else {
                System.out.println("Ignore");
            }
        }
    }
}